﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Zombicide.Business;
using Zombicide.Model;
using GalaSoft.MvvmLight.Messaging;

namespace Zombicide.UI.VM
{
    public class MainWindowViewModel
    {
        //BoardService boardService = new BoardService();
        public Board Board { get; set; }
        public List<Hero> Heroes { get; set; }

        public MainWindowViewModel()
        {
            Init();
        }

        public void Init()
        {
            //Board
            BoardService boardService = new BoardService();
            Board = boardService.GenerateBoard(BoardLevel.Green);

            //Heroes
            HeroService heroService = new HeroService();
            Heroes = new List<Hero>();
            for (int i = 0; i < 4; i++)
            {
                Heroes.Add(heroService.GenerateRandomHero());
            }            
        }


    }
}
